package com.moba.emums;

/** 语言类型 * */
public enum BaseDataType {
  BaseDataType_10("系统管理员", 10),
  BaseDataType_20("用户类型", 20),
  BaseDataType_30("提现手续费", 30),
  BaseDataType_40("游戏终端", 40),
  BaseDataType_50("排单分红比例", 50),
  BaseDataType_60("团队静态收益", 60),
  BaseDataType_70("领导分红比例", 70),
  BaseDataType_80("注册矿源", 80),
  BaseDataType_90("算力范围", 90),
  BaseDataType_200("用户等级", 200),
  BaseDataType_600("提现比例", 600);

  public static String getName(int index) {
    for (BaseDataType c : BaseDataType.values()) {
      if (c.getIndex() == index) {
        return c.name;
      }
    }
    return null;
  }

  private BaseDataType(String name, int index) {
    this.name = name;
    this.index = index;
  }

  private String name;

  private int index;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getIndex() {
    return index;
  }

  public void setIndex(int index) {
    this.index = index;
  }
}
